import { Injectable } from '@angular/core';
import {  Http } from '@angular/http';
import { UtilService } from './util.service';
@Injectable()
export class classService {

    constructor(private http: Http,private UtilService: UtilService) { }
    ClassForUser(userguid): Promise<any> {
        return this.http.get(`${this.UtilService.classUrl}/class/getClassList/${userguid}?Valid=0&State=0`).toPromise().then(res => {
            return res.json();
        })
    }

}